package com.yzt.sys.service.impl;

import com.yzt.sys.entity.Role;
import com.yzt.sys.mapper.RoleMapper;
import com.yzt.sys.service.IRoleService;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.yzt.base.service.impl.BaseServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author Y
 * @since 2020-12-21
 */
@Service
public class RoleServiceImpl extends BaseServiceImpl<RoleMapper, Role> implements IRoleService {

	@Override
	public List<Role> roleList(List<Long> roleIds) {
		List<Role> list = this.list(Wrappers.<Role>lambdaQuery().in(Role::getId, roleIds));
		return list;
	}

}
